<?php
$this->pageTitle=Yii::app()->name . ' - Change Password';
//$this->breadcrumbs=array(
//	'Change Password',
//);
?>

<h1>Change Password</h1>
<?php if(Yii::app()->user->hasFlash('congratulations')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('congratulations'); ?>
</div>

<?php endif ?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'change-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>

        <div class="row">
		<?php echo $form->labelEx($model,'new_password'); ?>
		<?php echo $form->passwordField($model,'new_password'); ?>
		<?php echo $form->error($model,'new_password'); ?>
	</div>


        <div class="row">
		<?php echo $form->labelEx($model,'confirm_new_password'); ?>
		<?php echo $form->passwordField($model,'confirm_new_password'); ?>
		<?php echo $form->error($model,'confirm_new_password'); ?>
	</div>
        
	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
